All Functions Used So Far, Week 8

geom_point

{GGPLOT2}

Generates a scatter plot

table

{base}

Obtain frequency table of a variable/cross-tabulation of two variables

ordered

{dplyr}

Create an ordered factor

geom_smooth

{GGPLOT2}

Generates a smoothed conditional means curve / line

aes

{GGPLOT2}

Construct aesthetic mapping of a ggplot graph

mutate

{dplyr}

Modify/create a column in a data frame

summary

{base}

Obtain summary statistics or detailed regression output

c

{base}

Combine values/vectors into a vector

read_excel

{readxl}

Read an Excel file

cut

{base}

Convert Numeric to Factor

stargazer

{stargazer}

Create a regression output table

attach

{base}

Attach Set of R Objects to Search Path

lm

{base}

Fit a linear model

scale_y_continuous

{GGPLOT2}

Customise continuous y axis

as.numeric

{base}

Coerce a vector to numeric

ggplot

{GGPLOT2}

Create a ggplot graph

ifelse

{base}

Return a or b depending on the value of test

setwd

{base}

Set Working Directory

library

{base}

Load an R package

theme_classic

{GGPLOT2}

A minimalistic theme with no gridlines

leveneTest

{car}

Computes Levene’s test for homogeneity of variance across groups.

as.character

{base}

Coerce a vector to character

prop.test

{stats}

Test of Equal or Given Proportions

scale_x_continuous

{GGPLOT2}

Customise continuous x axis

chisq.test

{stats}

Chi-Squared test (e.g. for cross-tabulations)

with

{base}

evaluate expression in the context of a data frame

read_dta

{haven}

Read a .dta file (Stata data)

t.test

{stats}

Performs one and two sample t-tests on vectors of data.

The end!